import time

from selenium import webdriver
from selenium.webdriver.common.by import By

d = webdriver.Edge() # 获取浏览器
d.get("https://www.sogou.com")
time.sleep(2)
d.get("https://www.baidu.com")
time.sleep(2)
d.get("https://www.qq.com")
time.sleep(2)
d.back()
time.sleep(3)
d.forward()
time.sleep(3)
d.maximize_window()
time.sleep(3)
d.minimize_window()
time.sleep(3)
d.set_window_size(1000,800)
time.sleep(3)
d.close()
d.quit()